package com.zzb.myshowme.utils;

import com.zzb.myshowme.bean.ChangePasswordReq;
import com.zzb.myshowme.bean.UserInfo;
import com.zzb.myshowme.bean.UserProfileInfo;

import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by Administrator on 2016/9/19.
 */
public interface HttpService {
    @GET("https://api.github.com/users/basil2style")
        //定义返回的方法，返回的响应体使用了ResponseBody
    Observable<String> getRxjavaString();

//    @POST("StartLiveReq")
//    Call<ResponseBody> postStartLiveReq(@Body StartLiveReq user);

    @POST("login")
    Observable<ResponseBody> loginReq(@Query("username") String userName, @Query("password") String passWord);

    @POST("isRegister")
    Observable<String> isRegisterReq(@Query("phone") String phone);

    @POST("register")
    Observable<String> registerReq(@Body UserInfo user);

    @POST("changePassword")
    Observable<String> changePassword(@Body ChangePasswordReq changePasswordReq);

    @POST("getUserInfo")
    Observable<String> getUserInfo(@Query("phone") String phone);

    @POST("setUserProfileInfo")
    Observable<String> setUserProfileInfo(@Body UserProfileInfo userProfileInfo);

    @GET("https://api.github.com/users/basil2style")
        //定义返回的方法，返回的响应体使用了ResponseBody
    Observable<String> testReq();
}
